<?php
include "p_koneksi.php";

// Define POST fetch
$myusername=$_POST['username']; 
$myemail=$_POST['email']; 
$mypassword=$_POST['password']; 
$mygolongan=$_POST['golongan']; 
$mynama=$_POST['nama']; 
$myalamat=$_POST['alamat']; 
$mygender=$_POST['gender']; 
$myttl=$_POST['ttl']; 
$mytelepon=$_POST['telepon']; 
$myrekening=$_POST['rekening']; 


//enkripsi password
$keyword=md5($mypassword);

//memasukkan data ke dalam table_member 
mysql_query("UPDATE Persons SET Age=36
WHERE FirstName='Peter' AND LastName='Griffin'");

$query="UPDATE aktor set where username='$myusername' password='$keyword'";
		
if (!mysql_query($query,$connect))
  {
  die('Error: ' . mysql_error());
  }
echo "1 record updated";
header("location:dashboard/login.php");

mysql_close($connect);

?>